package org.example.pojo;

/**
 * ipfs数据
 */
public class Ipfs {

    private int id;


    private  String name;

    /**
     * 数据的hash编码
     */
    private String hashCode;



    public void Ipfs(){};

    public void Ipfs(int id, String name, String hashCode){
        this.name = name;
        this.hashCode = hashCode;
        this.id = id;
    }

    public int getId(){
        return id;
    }
    public void setId(int id){
        this.id = id;
    }
    public String getName(){return name;}
    public void setName(String name){this.name = name;}
    public String getHashCode(){
        return hashCode;
    }
    public void setHashCode(String hashCode){
        this.hashCode = hashCode;
    }


    @Override
    public String toString() {
        return "Ipfs{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", hashCode='" + hashCode + '\'' +
                '}';
    }
}
